be a lesson to someone

对某人是一个教训